package com.caregiver.watch.business.user.model.po;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户设备信息表实体类
 */
@Data
public class UserDevice {
    /**
     * 设备ID
     */
    private Long deviceId;

    /**
     * 用户ID，关联user表
     */
    private Long userId;

    /**
     * 被照护人ID
     */
    private Long recipientId;

    /**
     * 设备唯一标识
     */
    private String deviceUuid;

    /**
     * 设备型号
     */
    private String deviceModel;

    /**
     * 当前系统版本号
     */
    private String systemVersion;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 应用版本号
     */
    private String appVersion;

    /**
     * 最后活跃时间
     */
    private LocalDateTime lastActiveTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 设备在线状态 offline 离线 online 在线
     */
    private String onlineStatus;

    /**
     * 设备电量
     */
    private Integer batteryLevel;

    /**
     * 设备信号强度
     */
    private Integer rssi;

    @Override
    public String toString() {
        return "UserDevice{" +
                "deviceId=" + deviceId +
                ", userId=" + userId +
                ", recipientId=" + recipientId +
                ", deviceUuid='" + deviceUuid + '\'' +
                ", deviceModel='" + deviceModel + '\'' +
                ", systemVersion='" + systemVersion + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", lastActiveTime=" + lastActiveTime +
                ", onlineStatus='" + onlineStatus + '\'' +
                ", batteryLevel=" + batteryLevel +
                ", rssi=" + rssi +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
